﻿using System;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

namespace CKSDev_SUGUK1.ControlTemplates.CKSDevSUGUK1Complete
{
    public partial class DisplayMessageControl : UserControl
    {
        public string DisplayMessage { get; set; }

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!String.IsNullOrEmpty(DisplayMessage))
            {
                litMessage.Text = DisplayMessage;
            }
            else
            {
                litMessage.Text = "No message";
            }
        }
    }
}
